<?php

// Create the loader array
$GLOBALS['loaded_lq_tools'] = array();

// Function for loading different lqTools
function includelq ($name)
{
	if (!isset($GLOBALS['loaded_lq_tools'][$name]))
	{
		$GLOBALS['loaded_lq_tools'][$name] = true;
		$fullpath = dirname(__FILE__) . "/lq$name";
		require "$fullpath/lib.php";
	}
}

// Exception class extended by all the exceptions used by lqTools
class lqException extends Exception { }

?>